"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_paste-markdown_dist_index_esm_js-node_modules_github_quote-select-973149"],{52769:(e,t,n)=>{function r(e,t){var n,r,i;let a=e.value.slice(0,null!==(n=e.selectionStart)&&void 0!==n?n:void 0),o=e.value.slice(null!==(r=e.selectionEnd)&&void 0!==r?r:void 0),l=!0;e.contentEditable="true";try{l=document.execCommand("insertText",!1,t)}catch(e){l=!1}if(e.contentEditable="false",l&&!e.value.slice(0,null!==(i=e.selectionStart)&&void 0!==i?i:void 0).endsWith(t)&&(l=!1),!l){try{document.execCommand("ms-beginUndoUnit")}catch(e){}e.value=a+t+o;try{document.execCommand("ms-endUndoUnit")}catch(e){}e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))}}n.d(t,{Ld:()=>en});let i=new WeakMap;function a(e){let{currentTarget:t}=e,n="KeyV"===e.code&&(e.ctrlKey||e.metaKey)&&e.shiftKey;(n||n&&e.altKey)&&i.set(t,!0)}function o(e){let{currentTarget:t}=e;i.delete(t)}function l(e){var t;let n=null!==(t=i.get(e))&&void 0!==t&&t;return n}function s(e,t,n){for(let r of(e.addEventListener("keydown",a),t))r(e,n);e.addEventListener("paste",o)}function u(e){e.removeEventListener("keydown",a),e.removeEventListener("paste",o)}function c(e){e.addEventListener("paste",f)}function d(e){e.removeEventListener("paste",f)}function f(e){let t=e.clipboardData,{currentTarget:n}=e;if(l(n)||!t||!g(t))return;let i=e.currentTarget;if(!(i instanceof HTMLTextAreaElement)||h(i))return;let a=t.getData("text/plain"),o=t.getData("text/html"),s=o.replace(/\u00A0/g," ").replace(/\uC2A0/g," ");if(!o||!(a=a.trim()))return;let u=new DOMParser,c=u.parseFromString(s,"text/html"),d=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,e=>e.parentNode&&v(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),f=p(a,d);f!==a&&(e.stopPropagation(),e.preventDefault(),r(i,f))}function p(e,t){var n;let r=t.firstChild(),i=e,a=0,o=0;for(;r&&o<1e4;){o++;let e=v(r)?(r.textContent||"").replace(/[\t\n\r ]+/g," "):(null===(n=r.firstChild)||void 0===n?void 0:n.wholeText)||"";if(m(e)){r=t.nextNode();continue}let l=i.indexOf(e,a);if(l>=0){if(v(r)){let t=y(r,e);i=i.slice(0,l)+t+i.slice(l+e.length),a=l+t.length}else a=l+e.length}r=t.nextNode()}return 1e4===o?e:i}function h(e){let t=e.selectionStart||0;if(0===t)return!1;let n=e.value.substring(t-1,t);return"@"===n}function m(e){return!e||(null==e?void 0:e.trim().length)===0}function v(e){var t;return(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())==="a"&&e.hasAttribute("href")}function g(e){return e.types.includes("text/html")}function y(e,t){let n=e.href||"";return T(e)?t:E(e)||b(n,t)?n:`[${t}](${n})`}function E(e){return e.className.indexOf("commit-link")>=0||!!e.getAttribute("data-hovercard-type")&&"user"!==e.getAttribute("data-hovercard-type")}function b(e,t){return e="/"===e.slice(-1)?e.slice(0,-1):e,t="/"===t.slice(-1)?t.slice(0,-1):t,e.toLowerCase()===t.toLowerCase()}function T(e){var t;return(null===(t=e.textContent)||void 0===t?void 0:t.slice(0,1))==="@"&&"user"===e.getAttribute("data-hovercard-type")}function x(e){e.addEventListener("dragover",w),e.addEventListener("drop",L),e.addEventListener("paste",A)}function C(e){e.removeEventListener("dragover",w),e.removeEventListener("drop",L),e.removeEventListener("paste",A)}function L(e){let t=e.dataTransfer;if(!t||N(t)||!k(t))return;let n=I(t);if(!n.some(H))return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n.map(S).join(""))}function w(e){let t=e.dataTransfer;t&&(t.dropEffect="link")}function A(e){let{currentTarget:t}=e;if(l(t))return;let n=e.clipboardData;if(!n||!k(n))return;let i=I(n);if(!i.some(H))return;e.stopPropagation(),e.preventDefault();let a=e.currentTarget;a instanceof HTMLTextAreaElement&&r(a,i.map(S).join(""))}function S(e){return H(e)?`
![](${e})
`:e}function N(e){return Array.from(e.types).indexOf("Files")>=0}function k(e){return Array.from(e.types).indexOf("text/uri-list")>=0}function I(e){return(e.getData("text/uri-list")||"").split("\r\n")}let M=/\.(gif|png|jpe?g)$/i;function H(e){return M.test(e)}let O=new WeakMap;function P(e,t){var n;O.set(e,(null===(n=null==t?void 0:t.defaultPlainTextPaste)||void 0===n?void 0:n.urlLinks)===!0),e.addEventListener("paste",D)}function $(e){e.removeEventListener("paste",D)}function D(e){var t;let{currentTarget:n}=e,i=null!==(t=O.get(n))&&void 0!==t&&t,a=l(n);if(!i&&a||i&&!a)return;let o=e.clipboardData;if(!o||!F(o))return;let s=e.currentTarget;if(!(s instanceof HTMLTextAreaElement))return;let u=o.getData("text/plain");if(!u||!q(u)||R(s))return;let c=s.value.substring(s.selectionStart,s.selectionEnd);c.length&&(q(c.trim())||(e.stopPropagation(),e.preventDefault(),r(s,W(c,u.trim()))))}function F(e){return Array.from(e.types).includes("text/plain")}function R(e){let t=e.selectionStart||0;if(!(t>1))return!1;{let n=e.value.substring(t-2,t);return"]("===n}}function W(e,t){return`[${e}](${t})`}function q(e){try{let t=new URL(e);return _(t.href).trim()===_(e).trim()}catch(e){return!1}}function _(e){return e.endsWith("/")?e.slice(0,e.length-1):e}function U(e){e.addEventListener("dragover",B),e.addEventListener("drop",V),e.addEventListener("paste",K)}function j(e){e.removeEventListener("dragover",B),e.removeEventListener("drop",V),e.removeEventListener("paste",K)}function V(e){let t=e.dataTransfer;if(!t||z(t))return;let n=Y(t);if(!n)return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n)}function B(e){let t=e.dataTransfer;t&&(t.dropEffect="copy")}function K(e){let{currentTarget:t}=e;if(l(t)||!e.clipboardData)return;let n=Y(e.clipboardData);if(!n)return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n)}function z(e){return Array.from(e.types).indexOf("Files")>=0}function J(e){let t=(e.textContent||"").trim().replace(/\|/g,"\\|").replace(/\n/g," ");return t||"\xa0"}function X(e){return Array.from(e.querySelectorAll("td, th")).map(J)}function Q(e){let t=Array.from(e.querySelectorAll("tr")),n=t.shift();if(!n)return"";let r=X(n),i=r.map(()=>"--"),a=`${r.join(" | ")}
${i.join(" | ")}
`,o=t.map(e=>Array.from(e.querySelectorAll("td")).map(J).join(" | ")).join("\n");return`
${a}${o}

`}function Y(e){if(-1===Array.from(e.types).indexOf("text/html"))return;let t=e.getData("text/html");if(!/<table/i.test(t))return;let n=new DOMParser,r=n.parseFromString(t,"text/html"),i=r.querySelector("table");if(!(i=!i||i.closest("[data-paste-markdown-skip]")?null:i))return;let a=Q(i);return t.replace(/<meta.*?>/,"").replace(/<table[.\S\s]*<\/table>/,`
${a}`)}function G(e){e.addEventListener("paste",ee)}function Z(e){e.removeEventListener("paste",ee)}function ee(e){let{currentTarget:t}=e;if(l(t))return;let n=e.clipboardData;if(!n||!et(n))return;let i=e.currentTarget;if(!(i instanceof HTMLTextAreaElement))return;let a=n.getData("text/x-gfm");a&&(e.stopPropagation(),e.preventDefault(),r(i,a))}function et(e){return Array.from(e.types).indexOf("text/x-gfm")>=0}function en(e,t){return s(e,[U,x,P,G,c],t),{unsubscribe:()=>{u(e),j(e),d(e),C(e),$(e),Z(e)}}}},55498:(e,t,n)=>{function r(e){let t=e.parentNode;if(null===t||!(t instanceof HTMLElement))throw Error();let n=0;t instanceof HTMLOListElement&&1!==t.start&&(n=t.start-1);let r=t.children;for(let t=0;t<r.length;++t)if(r[t]===e)return n+t;return n}function i(e){if(e instanceof HTMLAnchorElement&&1===e.childNodes.length){let t=e.childNodes[0];if(t instanceof HTMLImageElement)return t.src===e.href}return!1}function a(e){return"IMG"===e.nodeName||null!=e.firstChild}function o(e){return"INPUT"===e.nodeName&&e instanceof HTMLInputElement&&"checkbox"===e.type}n.d(t,{I:()=>MarkdownQuote,p:()=>Quote});let l=0;function s(e){let t=e.childNodes[0],n=e.childNodes[1];return!!t&&e.childNodes.length<3&&("OL"===t.nodeName||"UL"===t.nodeName)&&(!n||n.nodeType===Node.TEXT_NODE&&!(n.textContent||"").trim())}function u(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}let c={INPUT:e=>e instanceof HTMLInputElement&&e.checked?"[x] ":"[ ] ",CODE(e){let t=e.textContent||"";return e.parentNode&&"PRE"===e.parentNode.nodeName?(e.textContent=`\`\`\`
${t.replace(/\n+$/,"")}
\`\`\`

`,e):t.indexOf("`")>=0?`\`\` ${t} \`\``:`\`${t}\``},P(e){let t=document.createElement("p"),n=e.textContent||"";return t.textContent=n.replace(/<(\/?)(pre|strong|weak|em)>/g,"\\<$1$2\\>"),t},STRONG:e=>`**${e.textContent||""}**`,EM:e=>`_${e.textContent||""}_`,DEL:e=>`~${e.textContent||""}~`,BLOCKQUOTE(e){let t=(e.textContent||"").trim().replace(/^/gm,"> "),n=document.createElement("pre");return n.textContent=`${t}

`,n},A(e){let t=e.textContent||"",n=e.getAttribute("href");return/^https?:/.test(t)&&t===n?t:n?`[${t}](${n})`:t},IMG(e){let t=e.getAttribute("alt")||"",n=e.getAttribute("src");if(!n)throw Error();let r=e.hasAttribute("width")?` width="${u(e.getAttribute("width")||"")}"`:"",i=e.hasAttribute("height")?` height="${u(e.getAttribute("height")||"")}"`:"";return r||i?`<img alt="${u(t)}"${r}${i} src="${u(n)}">`:`![${t}](${n})`},LI(e){let t=e.parentNode;if(!t)throw Error();let n="";if(!s(e)){if("OL"===t.nodeName){if(l>0&&!t.previousSibling){let t=r(e)+l+1;n=`${t}\\. `}else n=`${r(e)+1}. `}else n="* "}let i=n.replace(/\S/g," "),a=(e.textContent||"").trim().replace(/^/gm,i),o=document.createElement("pre");return o.textContent=a.replace(i,n),o},OL(e){let t=document.createElement("li");return t.appendChild(document.createElement("br")),e.append(t),e},H1(e){let t=parseInt(e.nodeName.slice(1));return e.prepend(`${Array(t+1).join("#")} `),e},UL:e=>e};c.UL=c.OL;for(let e=2;e<=6;++e)c[`H${e}`]=c.H1;function d(e){let t=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.nodeName in c&&!i(e)&&(a(e)||o(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[],r=t.nextNode();for(;r;)r instanceof HTMLElement&&n.push(r),r=t.nextNode();for(let e of(n.reverse(),n))e.replaceWith(c[e.nodeName](e))}function f(e,t){let n=e.startContainer;if(!n||!n.parentNode||!(n.parentNode instanceof HTMLElement))throw Error("the range must start within an HTMLElement");let i=n.parentNode,a=e.cloneContents();if(t){let e=a.querySelector(t);e&&(a=document.createDocumentFragment()).appendChild(e)}l=0;let o=i.closest("li"),s=i.closest("pre");if(s){let e=document.createElement("pre");e.appendChild(a),(a=document.createDocumentFragment()).appendChild(e)}else if(o&&o.parentNode&&("OL"===o.parentNode.nodeName&&(l=r(o)),!a.querySelector("li"))){let e=document.createElement("li");if(!o.parentNode)throw Error();let t=document.createElement(o.parentNode.nodeName);e.appendChild(a),t.appendChild(e),(a=document.createDocumentFragment()).appendChild(t)}return a}let Quote=class Quote{constructor(){this.selection=window.getSelection()}closest(e){let t=this.range.startContainer,n=t instanceof Element?t:t.parentElement;return n?n.closest(e):null}get active(){var e;return((null===(e=this.selection)||void 0===e?void 0:e.rangeCount)||0)>0}get range(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.rangeCount)?this.selection.getRangeAt(0):new Range}set range(e){var t,n;null===(t=this.selection)||void 0===t||t.removeAllRanges(),null===(n=this.selection)||void 0===n||n.addRange(e)}get selectionText(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.toString().trim())||""}get quotedText(){return`> ${this.selectionText.replace(/\n/g,"\n> ")}

`}select(e){this.selection&&(this.selection.removeAllRanges(),this.selection.selectAllChildren(e))}insert(e){e.value?e.value=`${e.value}

${this.quotedText}`:e.value=this.quotedText,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),e.selectionStart=e.value.length,e.scrollTop=e.scrollHeight}};let MarkdownQuote=class MarkdownQuote extends Quote{constructor(e="",t){super(),this.scopeSelector=e,this.callback=t}get selectionText(){var e,t;if(!this.selection)return"";let n=f(this.range,null!==(e=this.scopeSelector)&&void 0!==e?e:"");null===(t=this.callback)||void 0===t||t.call(this,n),d(n);let r=document.body;if(!r)return"";let i=document.createElement("div");i.appendChild(n),i.style.cssText="position:absolute;left:-9999px;",r.appendChild(i);let a="";try{let e=document.createRange();e.selectNodeContents(i),this.selection.removeAllRanges(),this.selection.addRange(e),a=this.selection.toString(),this.selection.removeAllRanges(),e.detach()}finally{r.removeChild(i)}return a.trim()}}},407:(e,t,n)=>{n.d(t,{Xm:()=>a,e6:()=>o,iO:()=>l});let r=null;function i(e){return!!e.id&&e.value!==e.defaultValue&&e.form!==r}function a(e,t){var n,r,a;let o;let l=null!==(n=null==t?void 0:t.selector)&&void 0!==n?n:".js-session-resumable",s=null!==(r=null==t?void 0:t.keyPrefix)&&void 0!==r?r:"session-resume:";try{o=null!==(a=null==t?void 0:t.storage)&&void 0!==a?a:sessionStorage}catch(e){return}let u=`${s}${e}`,c=[];for(let e of document.querySelectorAll(l))(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&c.push(e);let d=c.filter(e=>i(e)).map(e=>[e.id,e.value]);if(d.length)try{let e=o.getItem(u);if(null!==e){let t=JSON.parse(e),n=t.filter(function(e){return!d.some(t=>t[0]===e[0])});d=d.concat(n)}o.setItem(u,JSON.stringify(d))}catch(e){}}function o(e,t){var n,r;let i,a;let o=null!==(n=null==t?void 0:t.keyPrefix)&&void 0!==n?n:"session-resume:";try{i=null!==(r=null==t?void 0:t.storage)&&void 0!==r?r:sessionStorage}catch(e){return}let l=`${o}${e}`;try{a=i.getItem(l)}catch(e){}if(!a)return;let s=[],u=[];for(let[e,t]of JSON.parse(a)){let n=new CustomEvent("session:resume",{bubbles:!0,cancelable:!0,detail:{targetId:e,targetValue:t}});if(document.dispatchEvent(n)){let n=document.getElementById(e);n&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)?n.value===n.defaultValue&&(n.value=t,s.push(n)):u.push([e,t])}}if(0===u.length)try{i.removeItem(l)}catch(e){}else i.setItem(l,JSON.stringify(u));setTimeout(function(){for(let e of s)e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))},0)}function l(e){r=e.target,setTimeout(function(){e.defaultPrevented&&(r=null)},0)}},54430:(e,t,n)=>{function r(e){var t=null,n=!1,r=void 0,i=void 0,a=void 0;function o(t){if(r!==t.clientX||i!==t.clientY){var l=e.style.height;a&&a!==l&&(n=!0,e.style.maxHeight="",e.removeEventListener("mousemove",o)),a=l}r=t.clientX,i=t.clientY}var l=e.ownerDocument,s=l.documentElement;function u(){if(!n&&e.value!==t&&(!(e.offsetWidth<=0)||!(e.offsetHeight<=0))){var r=function(){for(var t=0,n=e;n!==l.body&&null!==n;)t+=n.offsetTop||0,n=n.offsetParent;var r=t-l.defaultView.pageYOffset,i=s.clientHeight-(r+e.offsetHeight);return{top:r,bottom:i}}(),i=r.top,o=r.bottom;if(!(i<0)&&!(o<0)){var u=Number(getComputedStyle(e).height.replace(/px/,""))+o;e.style.maxHeight=u-100+"px";var c=e.parentElement;if(c instanceof HTMLElement){var d=c.style.height;c.style.height=getComputedStyle(c).height,e.style.height="auto",e.style.height=e.scrollHeight+"px",c.style.height=d,a=e.style.height}t=e.value}}}function c(){n=!1,e.style.height="",e.style.maxHeight=""}e.addEventListener("mousemove",o),e.addEventListener("input",u),e.addEventListener("change",u);var d=e.form;return d&&d.addEventListener("reset",c),e.value&&u(),{unsubscribe:function(){e.removeEventListener("mousemove",o),e.removeEventListener("input",u),e.removeEventListener("change",u),d&&d.removeEventListener("reset",c)}}}n.d(t,{Z:()=>i});let i=r},47142:(e,t,n)=>{n.d(t,{CD:()=>E,DU:()=>i,Gs:()=>g,m7:()=>y});var r=-1/0,i=1/0,a=-.005,o=-.005,l=-.01,s=1,u=.9,c=.8,d=.7,f=.6;function p(e){return e.toLowerCase()===e}function h(e){return e.toUpperCase()===e}function m(e){for(var t=e.length,n=Array(t),r="/",i=0;i<t;i++){var a=e[i];"/"===r?n[i]=u:"-"===r||"_"===r||" "===r?n[i]=c:"."===r?n[i]=f:p(r)&&h(a)?n[i]=d:n[i]=0,r=a}return n}function v(e,t,n,i){for(var u=e.length,c=t.length,d=e.toLowerCase(),f=t.toLowerCase(),p=m(t,p),h=0;h<u;h++){n[h]=Array(c),i[h]=Array(c);for(var v=r,g=h===u-1?o:l,y=0;y<c;y++)if(d[h]===f[y]){var E=r;h?y&&(E=Math.max(i[h-1][y-1]+p[y],n[h-1][y-1]+s)):E=y*a+p[y],n[h][y]=E,i[h][y]=v=Math.max(E,v+g)}else n[h][y]=r,i[h][y]=v+=g}}function g(e,t){var n=e.length,a=t.length;if(!n||!a)return r;if(n===a)return i;if(a>1024)return r;var o=Array(n),l=Array(n);return v(e,t,o,l),l[n-1][a-1]}function y(e,t){var n=e.length,i=t.length,a=Array(n);if(!n||!i)return a;if(n===i){for(var o=0;o<n;o++)a[o]=o;return a}if(i>1024)return a;var l=Array(n),u=Array(n);v(e,t,l,u);for(var c=!1,o=n-1,d=i-1;o>=0;o--)for(;d>=0;d--)if(l[o][d]!==r&&(c||l[o][d]===u[o][d])){c=o&&d&&u[o][d]===l[o-1][d-1]+s,a[o]=d--;break}return a}function E(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,i=0;r<n;r+=1)if(0===(i=t.indexOf(e[r],i)+1))return!1;return!0}},58797:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){let t=!1,n=null;function r(e,t,n,r=!1){t instanceof HTMLInputElement&&(t.indeterminate=r,t.checked!==n&&(t.checked=n,setTimeout(()=>{let n=new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{relatedTarget:e}});t.dispatchEvent(n)})))}function i(i){let a=i.target;a instanceof Element&&(a.hasAttribute("data-check-all")?function(t){if(t instanceof CustomEvent&&t.detail){let{relatedTarget:e}=t.detail;if(e&&e.hasAttribute("data-check-all-item"))return}let i=t.target;if(i instanceof HTMLInputElement){for(let t of(n=null,e.querySelectorAll("[data-check-all-item]")))r(i,t,i.checked);i.indeterminate=!1,o()}}(i):a.hasAttribute("data-check-all-item")&&function(i){if(i instanceof CustomEvent&&i.detail){let{relatedTarget:e}=i.detail;if(e&&(e.hasAttribute("data-check-all")||e.hasAttribute("data-check-all-item")))return}let a=i.target;if(!(a instanceof HTMLInputElement))return;let l=Array.from(e.querySelectorAll("[data-check-all-item]"));if(t&&n){let[e,t]=[l.indexOf(n),l.indexOf(a)].sort();for(let n of l.slice(e,+t+1||9e9))r(a,n,a.checked)}t=!1,n=a;let s=e.querySelector("[data-check-all]");if(s){let e=l.length,t=l.filter(e=>e instanceof HTMLInputElement&&e.checked).length;r(a,s,t===e,e>t&&t>0)}o()}(i))}function a(e){if(!(e.target instanceof Element))return;let n=e.target instanceof HTMLLabelElement&&e.target.control||e.target;n.hasAttribute("data-check-all-item")&&(t=e.shiftKey)}function o(){let t=e.querySelector("[data-check-all-count]");if(t){let n=e.querySelectorAll("[data-check-all-item]:checked").length;t.textContent=n.toString()}}return e.addEventListener("mousedown",a),e.addEventListener("change",i),{unsubscribe:()=>{e.removeEventListener("mousedown",a),e.removeEventListener("change",i)}}}},69567:(e,t,n)=>{function*r(e){let t="",n=0,r=!1;for(let i=0;i<e.length;i+=1)"{"!==e[i]||"{"!==e[i+1]||"\\"===e[i-1]||r?"}"===e[i]&&"}"===e[i+1]&&"\\"!==e[i-1]&&r&&(r=!1,yield{type:"part",start:n,end:i+2,value:t.slice(2).trim()},t="",i+=2,n=i):(r=!0,t&&(yield{type:"string",start:n,end:i,value:t}),t="{{",n=i,i+=2),t+=e[i]||"";t&&(yield{type:"string",start:n,end:e.length,value:t})}n.d(t,{R:()=>TemplateInstance,XK:()=>g});var i,a,o,l,s,u=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},c=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let AttributeTemplatePart=class AttributeTemplatePart{constructor(e,t){this.expression=t,i.set(this,void 0),a.set(this,""),u(this,i,e),c(this,i).updateParent("")}get attributeName(){return c(this,i).attr.name}get attributeNamespace(){return c(this,i).attr.namespaceURI}get value(){return c(this,a)}set value(e){u(this,a,e||""),c(this,i).updateParent(e)}get element(){return c(this,i).element}get booleanValue(){return c(this,i).booleanValue}set booleanValue(e){c(this,i).booleanValue=e}};i=new WeakMap,a=new WeakMap;let AttributeValueSetter=class AttributeValueSetter{constructor(e,t){this.element=e,this.attr=t,this.partList=[]}get booleanValue(){return this.element.hasAttributeNS(this.attr.namespaceURI,this.attr.name)}set booleanValue(e){if(1!==this.partList.length)throw new DOMException("Operation not supported","NotSupportedError");this.partList[0].value=e?"":null}append(e){this.partList.push(e)}updateParent(e){if(1===this.partList.length&&null===e)this.element.removeAttributeNS(this.attr.namespaceURI,this.attr.name);else{let e=this.partList.map(e=>"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}};var d=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},f=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let NodeTemplatePart=class NodeTemplatePart{constructor(e,t){this.expression=t,o.set(this,void 0),d(this,o,[e]),e.textContent=""}get value(){return f(this,o).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return f(this,o)[0].previousSibling}get nextSibling(){return f(this,o)[f(this,o).length-1].nextSibling}replace(...e){let t=e.map(e=>"string"==typeof e?new Text(e):e);for(let e of(t.length||t.push(new Text("")),f(this,o)[0].before(...t),f(this,o)))e.remove();d(this,o,t)}};function p(e){return{createCallback(e,t,n){this.processCallback(e,t,n)},processCallback(t,n,r){var i;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!==(i=r[t.expression])&&void 0!==i?i:"";e(t,n)}}}}}function h(e,t){e.value=String(t)}function m(e,t){return"boolean"==typeof t&&e instanceof AttributeTemplatePart&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,!0)}o=new WeakMap;let v=p(h),g=p((e,t)=>{m(e,t)||h(e,t)});var y=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},E=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};function*b(e){let t;let n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);for(;t=n.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let e=0;e<t.attributes.length;e+=1){let n=t.attributes.item(e);if(n&&n.value.includes("{{")){let e=new AttributeValueSetter(t,n);for(let t of r(n.value))if("string"===t.type)e.append(t.value);else{let n=new AttributeTemplatePart(e,t.value);e.append(n),yield n}}}else if(t instanceof Text&&t.textContent&&t.textContent.includes("{{"))for(let e of r(t.textContent)){e.end<t.textContent.length&&t.splitText(e.end),"part"===e.type&&(yield new NodeTemplatePart(t,e.value));break}}let TemplateInstance=class TemplateInstance extends DocumentFragment{constructor(e,t,n=v){var r,i;super(),l.set(this,void 0),s.set(this,void 0),Object.getPrototypeOf(this!==TemplateInstance.prototype)&&Object.setPrototypeOf(this,TemplateInstance.prototype),this.appendChild(e.content.cloneNode(!0)),y(this,s,Array.from(b(this))),y(this,l,n),null===(i=(r=E(this,l)).createCallback)||void 0===i||i.call(r,this,E(this,s),t)}update(e){E(this,l).processCallback(this,E(this,s),e)}};l=new WeakMap,s=new WeakMap},8433:(e,t,n)=>{function r(e){let t="==".slice(0,(4-e.length%4)%4),n=e.replace(/-/g,"+").replace(/_/g,"/")+t,r=atob(n),i=new ArrayBuffer(r.length),a=new Uint8Array(i);for(let e=0;e<r.length;e++)a[e]=r.charCodeAt(e);return i}function i(e){let t=new Uint8Array(e),n="";for(let e of t)n+=String.fromCharCode(e);let r=btoa(n),i=r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return i}n.d(t,{JO:()=>y,U2:()=>L,Ue:()=>C,Zh:()=>x,wz:()=>b});var a="copy",o="convert";function l(e,t,n){if(t===a)return n;if(t===o)return e(n);if(t instanceof Array)return n.map(n=>l(e,t[0],n));if(t instanceof Object){let r={};for(let[i,a]of Object.entries(t)){if(a.derive){let e=a.derive(n);void 0!==e&&(n[i]=e)}if(!(i in n)){if(a.required)throw Error(`Missing key: ${i}`);continue}if(null==n[i]){r[i]=null;continue}r[i]=l(e,a.schema,n[i])}return r}}function s(e,t){return{required:!0,schema:e,derive:t}}function u(e){return{required:!0,schema:e}}function c(e){return{required:!1,schema:e}}var d={type:u(a),id:u(o),transports:c(a)},f={appid:c(a),appidExclude:c(a),credProps:c(a)},p={appid:c(a),appidExclude:c(a),credProps:c(a)},h={publicKey:u({rp:u(a),user:u({id:u(o),name:u(a),displayName:u(a)}),challenge:u(o),pubKeyCredParams:u(a),timeout:c(a),excludeCredentials:c([d]),authenticatorSelection:c(a),attestation:c(a),extensions:c(f)}),signal:c(a)},m={type:u(a),id:u(a),rawId:u(o),authenticatorAttachment:c(a),response:u({clientDataJSON:u(o),attestationObject:u(o),transports:s(a,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:s(p,e=>e.getClientExtensionResults())},v={mediation:c(a),publicKey:u({challenge:u(o),timeout:c(a),rpId:c(a),allowCredentials:c([d]),userVerification:c(a),extensions:c(f)}),signal:c(a)},g={type:u(a),id:u(a),rawId:u(o),authenticatorAttachment:c(a),response:u({clientDataJSON:u(o),authenticatorData:u(o),signature:u(o),userHandle:u(o)}),clientExtensionResults:s(p,e=>e.getClientExtensionResults())};function y(e){return l(r,h,e)}function E(e){return l(i,m,e)}function b(e){return l(r,v,e)}function T(e){return l(i,g,e)}function x(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}async function C(e){let t=await navigator.credentials.create(e);return t.toJSON=()=>E(t),t}async function L(e){let t=await navigator.credentials.get(e);return t.toJSON=()=>T(t),t}},89900:(e,t,n)=>{n.d(t,{Z:()=>o});let r=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],i="undefined"!=typeof window,a=i&&null!=window.mozInnerScreenX;function o(e,t,n){let i=n&&n.debug||!1;if(i){let e=document.querySelector("#input-textarea-caret-position-mirror-div");e&&e.parentNode.removeChild(e)}let o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);let l=o.style,s=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,u="INPUT"===e.nodeName;for(let t of(l.whiteSpace="pre-wrap",u||(l.wordWrap="break-word"),l.position="absolute",i||(l.visibility="hidden"),r))if(u&&"lineHeight"===t){if("border-box"===s.boxSizing){let e=parseInt(s.height),t=parseInt(s.paddingTop)+parseInt(s.paddingBottom)+parseInt(s.borderTopWidth)+parseInt(s.borderBottomWidth),n=t+parseInt(s.lineHeight);e>n?l.lineHeight=`${e-t}px`:e===n?l.lineHeight=s.lineHeight:l.lineHeight=0}else l.lineHeight=s.height}else if(u||"width"!==t||"border-box"!==s.boxSizing)l[t]=s[t];else{let n=parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),r=a?parseFloat(s[t])-n:e.clientWidth+n;l[t]=`${r}px`}a?e.scrollHeight>parseInt(s.height)&&(l.overflowY="scroll"):l.overflow="hidden",o.textContent=e.value.substring(0,t),u&&(o.textContent=o.textContent.replace(/\s/g,"\xa0"));let c=document.createElement("span");c.textContent=e.value.substring(t)||".",o.appendChild(c);let d={top:c.offsetTop+parseInt(s.borderTopWidth),left:c.offsetLeft+parseInt(s.borderLeftWidth),height:parseInt(s.lineHeight)};return i?c.style.backgroundColor="#aaa":document.body.removeChild(o),d}},38085:(e,t,n)=>{n.d(t,{Fu:()=>I,NO:()=>V,Yn:()=>U,a4:()=>b,mr:()=>K,mw:()=>C});var r,i,a,o,l,s=-1,u=function(e){addEventListener("pageshow",function(t){t.persisted&&(s=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=c();return e&&e.activationStart||0},f=function(e,t){var n=c(),r="navigate";return s>=0?r="back-forward-cache":n&&(r=document.prerendering||d()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},h=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},m=function(e,t,n,r){var i,a;return function(o){var l;t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=(l=t.value)>n[1]?"poor":l>n[0]?"needs-improvement":"good",e(t))}},v=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){v=e.timeStamp},!0)},E=function(){return v<0&&(v=g(),y(),u(function(){setTimeout(function(){v=g(),y()},0)})),{get firstHiddenTime(){return v}}},b=function(e,t){t=t||{};var n,r=[1800,3e3],i=E(),a=f("FCP"),o=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-d(),0),a.entries.push(e),n(!0)))})},l=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],s=l?null:p("paint",o);(l||s)&&(n=m(e,a,r,t.reportAllChanges),l&&o([l]),u(function(i){n=m(e,a=f("FCP"),r,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,n(!0)})})}))},T=!1,x=-1,C=function(e,t){t=t||{};var n=[.1,.25];T||(b(function(e){x=e.value}),T=!0);var r,i=function(t){x>-1&&e(t)},a=f("CLS",0),o=0,l=[],s=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=l[0],n=l[l.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,l.push(e)):(o=e.value,l=[e]),o>a.value&&(a.value=o,a.entries=l,r())}})},c=p("layout-shift",s);c&&(r=m(i,a,n,t.reportAllChanges),h(function(){s(c.takeRecords()),r(!0)}),u(function(){o=0,x=-1,r=m(i,a=f("CLS",0),n,t.reportAllChanges)}))},L={passive:!0,capture:!0},w=new Date,A=function(e,t){r||(r=t,i=e,a=new Date,k(removeEventListener),S())},S=function(){if(i>=0&&i<a-w){var e={entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+i};o.forEach(function(t){t(e)}),o=[]}},N=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){A(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,L),removeEventListener("pointercancel",n,L)},addEventListener("pointerup",t,L),addEventListener("pointercancel",n,L)):A(i,e)}},k=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,N,L)})},I=function(e,t){t=t||{};var n,a=[100,300],l=E(),s=f("FID"),c=function(e){e.startTime<l.firstHiddenTime&&(s.value=e.processingStart-e.startTime,s.entries.push(e),n(!0))},d=function(e){e.forEach(c)},v=p("first-input",d);n=m(e,s,a,t.reportAllChanges),v&&h(function(){d(v.takeRecords()),v.disconnect()},!0),v&&u(function(){n=m(e,s=f("FID"),a,t.reportAllChanges),o=[],i=-1,r=null,k(addEventListener),o.push(c),S()})},M=0,H=1/0,O=0,P=function(e){e.forEach(function(e){e.interactionId&&(H=Math.min(H,e.interactionId),M=(O=Math.max(O,e.interactionId))?(O-H)/7+1:0)})},$=function(){return l?M:performance.interactionCount||0},D=function(){"interactionCount"in performance||l||(l=p("event",P,{type:"event",buffered:!0,durationThreshold:0}))},F=0,R=function(){return $()-F},W=[],q={},_=function(e){var t=W[W.length-1],n=q[e.interactionId];if(n||W.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};q[r.id]=r,W.push(r)}W.sort(function(e,t){return t.latency-e.latency}),W.splice(10).forEach(function(e){delete q[e.id]})}},U=function(e,t){t=t||{};var n=[200,500];D();var r,i=f("INP"),a=function(e){e.forEach(function(e){e.interactionId&&_(e),"first-input"!==e.entryType||W.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||_(e)});var t,n=(t=Math.min(W.length-1,Math.floor(R()/50)),W[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=p("event",a,{durationThreshold:t.durationThreshold||40});r=m(e,i,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),h(function(){a(o.takeRecords()),i.value<0&&R()>0&&(i.value=0,i.entries=[]),r(!0)}),u(function(){W=[],F=$(),r=m(e,i=f("INP"),n,t.reportAllChanges)}))},j={},V=function(e,t){t=t||{};var n,r=[2500,4e3],i=E(),a=f("LCP"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-d(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},l=p("largest-contentful-paint",o);if(l){n=m(e,a,r,t.reportAllChanges);var s=function(){j[a.id]||(o(l.takeRecords()),l.disconnect(),j[a.id]=!0,n(!0))};["keydown","click"].forEach(function(e){addEventListener(e,s,{once:!0,capture:!0})}),h(s,!0),u(function(i){n=m(e,a=f("LCP"),r,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,j[a.id]=!0,n(!0)})})})}},B=function e(t){document.prerendering?addEventListener("prerenderingchange",function(){return e(t)},!0):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},K=function(e,t){t=t||{};var n=[800,1800],r=f("TTFB"),i=m(e,r,n,t.reportAllChanges);B(function(){var a=c();if(a){if(r.value=Math.max(a.responseStart-d(),0),r.value<0||r.value>performance.now())return;r.entries=[a],i(!0),u(function(){(i=m(e,r=f("TTFB",0),n,t.reportAllChanges))(!0)})}})}}}]);
//# sourceMappingURL=vendors-node_modules_github_paste-markdown_dist_index_esm_js-node_modules_github_quote-select-973149-a3b0228ff4dd.js.map